package gis.lifay.sdk;

import cn.hutool.core.lang.UUID;

/**
 *@ClassName TileModel
 *@Description 切片模型
 *@Author lifay
 *@Date 2021/11/1 11:30
 **/
public class TileModel {

    private String id;//切片程序ID

    private String title;//地图标题

    private String profile = "raster";//瓦片切割剖面

    private boolean noKml = true;//屏蔽生成kml

    private int processes = 0;//进程数

    private String zoom = "0-6";//缩放渲染级别，format:'2-5' or '10'

    private String inputFile;//输入文件

    private String outPath;//输出目录

    /**
     * 默认切片构造器
     * @param title
     * @param inputFile
     * @param outPath
     */
    public TileModel(String title, String inputFile, String outPath) {
        this.id = UUID.fastUUID().toString();
        this.title = title;
        this.inputFile = inputFile;
        this.outPath = outPath;
    }

    public TileModel(String title, String profile, boolean noKml, int processes, String zoom, String inputFile, String outPath) {
        this.id = UUID.fastUUID().toString();
        this.title = title;
        this.profile = profile;
        this.noKml = noKml;
        this.processes = processes;
        this.zoom = zoom;
        this.inputFile = inputFile;
        this.outPath = outPath;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public boolean isNoKml() {
        return noKml;
    }

    public void setNoKml(boolean noKml) {
        this.noKml = noKml;
    }

    public int getProcesses() {
        return processes;
    }

    public void setProcesses(int processes) {
        this.processes = processes;
    }

    public String getZoom() {
        return zoom;
    }

    public void setZoom(String zoom) {
        this.zoom = zoom;
    }

    public String getInputFile() {
        return inputFile;
    }

    public void setInputFile(String inputFile) {
        this.inputFile = inputFile;
    }

    public String getOutPath() {
        return outPath;
    }

    public void setOutPath(String outPath) {
        this.outPath = outPath;
    }
}
